/*
 * Menu.java
 *
 * Created on March 25, 2007, 7:40 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package fmglemmings;
import java.io.*;
/**
 *
 * @author ijanos
 */
public class Menu {
	public int menu(String[] stuff){
		String string;
		string = new String();
		int j=-1;
		for(int i=0; i< stuff.length;i++){
			System.out.println(i+" - "+stuff[i]);
		}
		InputStreamReader input = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(input);
		try{
			string = reader.readLine(); 
		}catch(Exception e){}
		try { j = Integer.parseInt(string);} catch (Exception e) {}
		return (j);
	}
	/** Creates a new instance of Menu */
	public Menu() {

	}
	
}
